package com.ie.sevice.admin;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ie.comment.http.ResponseResult;
import com.ie.entity.CartEntity;
import com.ie.entity.FocusEntity;
import com.ie.entity.GoodsEntity;

import java.util.List;
import java.util.Map;

/**
 * @author hp
 */
public interface GoodsService extends IService<GoodsEntity> {
    ResponseResult<Map<String, Object>> getGoods( GoodsEntity goodsEntity);
    ResponseResult<List<GoodsEntity>> getAdvGoods();
    ResponseResult<GoodsEntity> getGoodsById( GoodsEntity goodsEntity);
    ResponseResult<List<GoodsEntity>> getGoodsIndex(GoodsEntity goodsEntity);
    ResponseResult<Map<String, Object>> addGoods(GoodsEntity goodsEntity);
    ResponseResult<Map<String, Object>> deleteGoods(GoodsEntity goodsEntity);

    /**
     * 和BUser有关的业务处理
     *
     * cart
     * focus
     * */
     ResponseResult<List<Map<String , Object>>> myCarGoods(CartEntity cartEntity);
     ResponseResult<Map<String , Object>> iPageMyFocusGoods(GoodsEntity goodsEntity);

}
